<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>错误类型</title>
</head>
<body>
  <script>
    // ReferenceError  引用错误
    // console.log(a);

    // TypeError   类型错误
    // let a = 100;
    // a();

    // RangeError  范围错误
    // let arr = new Array(-1);
    // console.log(arr);

    //SyntaxError 语法错误
    // function fn(){}

    // // fn(;
    // let a =;

  </script>
</body>
</html>